package com.cn.ycy.proxy.staticproxy;

import com.cn.ycy.proxy.jdk.Person;
import com.cn.ycy.proxy.jdk.Student;

/**
 * 静态代理模式
 */
public class PoxyImpl implements Person {

  Student userDaoI;

  public PoxyImpl(Student userDaoI) {
    this.userDaoI = userDaoI;
  }

  @Override
  public void doWork() {
    System.out.println("代理对象 ido first");
    userDaoI.doWork();
  }
}

